const Router = require('koa-router')
const { verifyLogin, verifyAuth } = require('../middleware/auth.middleware')
const { login, success } = require('../controller/auth.controller')

const authRouter = new Router()
authRouter.post('/login', verifyLogin, login)

// 测试token令牌
authRouter.post('/test', verifyAuth, success)


module.exports = authRouter